package com.jg.visitor.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jg.visitor.controller.dto.UserDTO;
import com.jg.visitor.controller.vo.AdminRecordQueryVO;
import com.jg.visitor.domain.VisitorApplyRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cqj
 */
@Mapper
public interface VisitorApplyRecordMapper extends BaseMapper<VisitorApplyRecord> {

    /**
     * 根据openId查询已经通过的订单
     * @param openId openId
     * @return 已经通过的订单
     */
    VisitorApplyRecord getVisitorPassOrderByOpenId(@Param("openId") String openId,@Param("now") String now);

    List<VisitorApplyRecord> selectByCondition(Page<VisitorApplyRecord> page, @Param("loginUser") UserDTO loginUser, @Param("condition") AdminRecordQueryVO approverQueryVO);
    List<VisitorApplyRecord> selectByCondition(@Param("loginUser")UserDTO loginUser,@Param("condition")AdminRecordQueryVO approverQueryVO);
}




